#ifndef GLTEXTURE_H
#define GLTEXTURE_H

class GLTexture2D
{
public:
    GLTexture2D();
    ~GLTexture2D();

    bool create();
    void release();
    void bind();

public slots:
    bool load(QString fname);
    bool load(char* data, int, int);

private:
    int _tex_id;
    int _w;
    int _h;
};

#endif // GLTEXTURE_H
